package com.zhang.foreach;

import java.util.ArrayList;

/**
 * @Author 弯冬水
 * @Date 2023/2/12 18:40
 * @Description: TODO
 * @Version 1.0
 */
public class TestForeach {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("大傻逼1");
        arrayList.add("大傻逼2");
        arrayList.add("大傻逼3");
        arrayList.add("大傻逼4");
        arrayList.forEach(s -> {
            String substring = s.substring(3);
            System.out.println("substring = " + substring);
        });
    }
}
